From 071fb90e7d12c6cc177fd9414584ee47679e2dc5 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 12:59:00 +0000 Subject: Extract PatioCodeGenClosures.create() --- ...org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index a421098a..7a6007d0 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -16,14 +16,14 @@ Compilation unit elements: function "shed__effectHandlerMethod__f__0" visibility=private - locals=((param "effectHandlerMethodPointer__0" data-ptr) (val "effectHandler__0" data-ptr) (val "effectHandler__1" data-ptr) (val "tmp__0" int)) + locals=((param "closurePointer__0" data-ptr) (val "effectHandler__0" data-ptr) (val "effectHandler__1" data-ptr) (val "tmp__0" int)) return-type=int body=( (call (local "effectHandler__0") "shed__runtime__effects_get_handler" ()) ( memory-load (local "effectHandler__1") - pointer=(local "effectHandlerMethodPointer__0") + pointer=(local "closurePointer__0") layout=(struct (function-ptr (struct (data-ptr)) (struct ()))) offset=(1 0) ) @@ -36,13 +36,12 @@ Compilation unit elements: Locals: * (val "closure__f__0" int) - * (val "effectHandlerCurrent__0" data-ptr) * (val "closurePointer__f__0" data-ptr) + * (val "effectHandlerCurrent__0" data-ptr) Instructions: ( - (call (local "effectHandlerCurrent__0") "shed__runtime__effects_get_handler" ()) (alloc-heap (local "closurePointer__f__0") (struct (function-ptr (struct (data-ptr)) (struct ())))) ( memory-store @@ -51,6 +50,7 @@ Instructions: offset=(0) value=(function-ptr "shed__effectHandlerMethod__f__0") ) + (call (local "effectHandlerCurrent__0") "shed__runtime__effects_get_handler" ()) ( memory-store pointer=(local "closurePointer__f__0") -- cgit v1.2.3